﻿using SqlSugar;
using System.Collections.Generic;
using System.ComponentModel;

namespace MESPro.Models
{
    /// <summary>
    /// 模块名字:MES,WMS,QMS等等...
    /// </summary>
    [Tenant("Default")]
    public class Model : EntityBaseIdNameCreat
    {
        /// <summary>
        /// 一个模块下面有多个功能组
        /// </summary>
        [Navigate(NavigateType.OneToMany, nameof(FunctionGroup.ModelId))]
        [Browsable(false)]
        public List<FunctionGroup> FunctionGroups { get; set; }

        //Status char(1), Name Nvarchar(50)
        /// <summary>
        /// 状态 
        /// </summary>
        [SugarColumn(Length =2, IsNullable = true)]
        public string? Status { get; set; }
        /// <summary>
        /// 状态 
        /// </summary>
        [SugarColumn(Length = 50, IsNullable = true)]
        public string? Name { get; set; }
    }
}
